package com.mjh.zhujianju.service.base;

import java.util.List;
import java.util.Map;

import com.livew.framework.base.service.BaseService;
import com.livew.framework.exception.XTBusinessException;
import com.mjh.zhujianju.model.base.ContentEO;

/**
 * @author liuyang
 * @Description: 内容
 * @date 2018/8/11 17:30
 */
public interface ContentService  extends BaseService<ContentEO> {


    /**
     *  根据类型和业务id查询内容数据
     * @param type
     * @param businessId
     * @return
     */
    ContentEO queryContentByTypeAndId(String type,Long businessId);
    
    /**
     *  根据类型和业务id查询内容数据
     * @param type
     * @param businessId
     * @return
     */
    Map<Long,ContentEO> queryContentsByTypeAndId(String type,List<Long> businessIds);
    
    /**
     *  根据类型和业务id查询内容数据
     * @param type
     * @param businessId
     * @return
     */
    void saveOrUpdate(String type,Long businessId,String content)throws XTBusinessException;

}
